package com.qst.crop.service;

import com.github.pagehelper.PageInfo;
import com.qst.crop.entity.Question;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import java.util.List;

/**
 * (Question)表服务接口
 */
public interface QuestionService {

	Question queryById(Integer id);

	Page<Question> queryByPage(Question question, PageRequest pageRequest);

	Question insert(Question question);

	Question update(Question question);

	boolean deleteById(Integer id);

	PageInfo<Question> findAllQues(Integer pageNum);

	PageInfo<Question> findPageQues(String keys, Integer pageNum);

	// 新增：个人问答
	List<Question> selectByQuestioner(String questioner);

	Question updateById(Integer id, Question question);
}
